The cache loading code manually constructs path fishes, which did not
get their bpp initialized, this resulted in conversions of long runs to
fail, not crash - but stop processing after MAX_BUFFER_SIZE pixels.
babl->fish.source = from_format;
babl->fish.destination = to_format;
babl->fish_path.conversion_list = babl_list_init_with_size (10);
+ _babl_fish_prepare_bpp (babl);
+ _babl_fish_rig_dispatch (babl);
token2 = strtok_r (&token[1], seps2, &tokp2);
while( token2 != NULL )
return 0;
}
-static void
-babl_fish_prepare_bpp (Babl *babl)
+void
+_babl_fish_prepare_bpp (Babl *babl)
{
const Babl *babl_source = babl->fish.source;
const Babl *babl_dest = babl->fish.destination;
return NULL;
}
- babl_fish_prepare_bpp (babl);
+ _babl_fish_prepare_bpp (babl);
_babl_fish_rig_dispatch (babl);
/* Since there is not an already registered instance by the required
* name, inserting newly created class into database.
}
void _babl_fish_rig_dispatch (Babl *babl);
+void _babl_fish_prepare_bpp (Babl *babl);
#endif